unit GarconRecordFr;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
  StdCtrls, DBCtrls, ActnList, DBGrids, ComCtrls, Buttons, MainRecordFr;

type

  { TGarconRecordFrame }

  TGarconRecordFrame = class(TMainRecordFrame)
    BitBtn1: TBitBtn;
    DBEdit1: TDBEdit;
    DBGrid1: TDBGrid;
    DBGroupBox1: TDBGroupBox;
    DBGroupBox2: TDBGroupBox;
    DBNavigator1: TDBNavigator;
    DBRadioGroup1: TDBRadioGroup;
    desc_garcon: TDBEdit;
    id_garcon: TDBEdit;
    Label1: TLabel;
    Label2: TLabel;
    procedure BitBtn1Click(Sender: TObject);
    procedure id_garconChange(Sender: TObject);

  private
    { private declarations }
  public
    { public declarations }
  end;

implementation

{TGarconRecordFrame}

uses Initializator, MainFr, GarconDM, MainDM;

procedure TGarconRecordFrame.BitBtn1Click(Sender: TObject);
begin
    TheControl.ShowForeignFrame(TMainFrame(PessoaSearchFrame));
end;

procedure TGarconRecordFrame.id_garconChange(Sender: TObject);
begin
   if (GarconData.DataSetState() in [mdsEditing, mdsInserting]) then begin
     GarconData.GarconZQuery.FieldByName('id_garcon').AsString:=id_garcon.Text;
   end;
end;


initialization
  {$I garconrecordfr.lrs}

end.

